package com.zhinan.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 项目顶级异常类
 * @Author: ZhiNan
 * @Date: 2023-04-20 14:37
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public class ServiceException extends RuntimeException {

    //异常代码
    private final String code;

    //异常信息
    private final String msg;


    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}
